function RobotModel($http, API, $resource) {
    var transforms = $http.defaults.transformResponse
    this.actions = {}

    this.actions.search = {
        method: 'POST',
        url: API + '/robot/robotList'
    }

    this.actions.selectAllByRobotNumber = {
        method: 'POST',
        url: API + '/robot/selectRobotInGroupAdd'
        //isArray:true,//当后台返回数组时需要这个参数
    }

    this.actions.delete = {
        method: 'GET',
        url: API + '/robot/delete/:robotNumber'
    }

    var Model = $resource.call(this, this.url, this.params, this.actions)

    return Model
}
